import { createRouter, createWebHashHistory as H, RouteRecordRaw } from 'vue-router';import { defineAsyncComponent } from 'vue';
import Loading from './views/Loading';
import Home from './views/Home';import Async from './views/Async';
import DemoAsync from './views/DemoAsync';import About from './views/About';import Test from './views/Test';
const routes:Array<RouteRecordRaw> = [{
    path:'/',component:<Async/>
  },{
    path:'/home',component:<Home/>
  },{
    path:'/Demo',component:defineAsyncComponent({
      loader:DemoAsync,loadingComponent:<Loading/>
    })
  },{
    path:'/about',component:<About><Home/></About>
  },{
    path:'/Test',component:<Test>what the fuck!</Test>
  }
]

export default createRouter({history:H(process.env.BASE_URL),routes})//createWebHashHistory